home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
basic
/
vxbase.zip
/
VXFORM8.FRM
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1992-05-05
|
3KB
|
70 lines
VXFORM8
Record Structure Example
Form1
CatBox
CatNameBox
EvalBox
Label1
. vxEvalLogical("left(category,1)='C'", Eval$)
Label2
>vxEvalString("trim(catname)+' is category '+category", EvStr$)
JoinBox
ButtonNext
&Next
ButtonQuit
&Quit
Form_Load
vxSelectDbf
AirtypesDbf
vxTop
Form8Display
CatRec
vxEof
vxRecord
CatBox
TextO
Category
CatNameBox
CatName
Form_Paint
Form_Unload
Cancel
vxClose
vxWindowDereg
VXFORM8
hWndk
ButtonQuit_Click
ButtonNext_Click
vxSkip
FALSE
vxDeleted
MBuff
BufferType
vxEvalLogical
EvalBox
vxEvalString
EvStr
JoinBox
Form_Load
Form8Display
the structure of the types file is defined-
in the global module as type CatRec
if we wanted to use a string as a recordc
buffer instead of a user defined type, we
would use code as follows:o
Buf$ = String$(512,0)
If vxRecord(ByVal Buf$) ThenT
example of xBase logical expression evaluation-
left(category,1)='C'
example of xBase string expression evaluation
trim(catname) + ' is category ' + category
Form_Paint
Form_Unload
ButtonQuit_Click
ButtonNext_Click
skip forward one record
if skip error, only allow exita
Error on Skip Next. Try Reindex.
test for end of file
End of File!